const express = require('express')
const expressRoutes = require('./server/router')
require('dotenv').config()

// require('dotenv').config()

const app = express()
const router = express.Router()

app.use(
  express.urlencoded({
    extended: true,
  })
)
app.use('/weixt', expressRoutes(router))

app.listen(3000, () => {
  console.log('Listening on port 3000')
})

console.log(process.env)

// console.log('bot token=' + process.env.BOT_TOKEN)
// client.login(process.env.BOT_TOKEN)
